/** @type {import('next').NextConfig} */
const nextConfig = {
    /*代理方式（1）*/
    async rewrites() {
        return {
            fallback: [
                //接口请求/
                {source: '/:path*', destination: `https://server.jfkj.xyz/:path*`},

            ]
        }
    },
    /*打包方式*/
    //output: 'standalone',
    /*构建ID*/
    generateBuildId: async () => {
        return (process.env.VERSION || Date.now() + Math.round(Math.random() * 2441139)).toString()
    },
}
module.exports = nextConfig
